<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<table class="table table-hover table-bordered">
    <thead>
    <tr>
        <th class="text-center">ID</th>
        <th class="text-center" width="15%">试卷名称</th>
        <th class="text-center" width="5%">类型</th>
        <th class="text-center" width="13%">批阅状态</th>
        <th class="text-center" width="10%">试卷总分</th>
        <th class="text-center" width="10%">得分</th>
        <th class="text-center" width="15%">考试时间</th>
        <th class="text-center" width="5%">考试用时</th>
        <th class="text-center" width="10%">状态</th>
    </tr>
    </thead>
    <tbody>
        <tr th:if="${#lists.isEmpty(dataMap['list'])}">
            <td colspan="9">
                <div class="noDataTipsBox">
                    <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                </div>
            </td>
        </tr>
        <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="examRecord:${dataMap['list']}">
            <td class="text-center" th:text="${examRecord['id']}"></td>
            <td class="text-center">
                <span class="line" th:text="${examRecord['name']}">
                </span>
            </td>
            <td class="text-center">
                <th:block th:if="${examRecord['useType']}==1">
                    <th:block th:if="${examRecord['type']}==1">真题考试</th:block>
                    <th:block th:if="${examRecord['type']}==2">考点练习</th:block>
                    <th:block th:if="${examRecord['type']}==3">错题练习</th:block>
                    <th:block th:if="${examRecord['type']}==4">自由组卷</th:block>
                </th:block>
                <th:block th:if="${examRecord['useType']}==2">
                    <th:block th:if="${examRecord['type']}==1">作业</th:block>
                </th:block>
                <th:block th:if="${examRecord['useType']}==3">
                    <th:block th:if="${examRecord['type']}==5">随堂练习</th:block>
                </th:block>
            </td>
            <td class="text-center">
                <span th:if="${examRecord['marking']}==1" th:text="${examRecord['marked']}==1 ? '未批阅':'已批阅'"></span>
                <span th:if="${examRecord['marking']}==2" th:text="'试卷不提供阅卷服务'"></span>
            </td>
            <td class="text-center" th:text="${examRecord['score']}"></td>
            <td class="text-navy text-center" th:text="${examRecord['userScore']}"></td>
            <td class="text-center" th:text="${examRecord['createTime']}"></td>
            <td class="text-center" th:text="${#numbers.formatDecimal(examRecord['examTime']/60,1,0,'POINT')}+'分'+(${examRecord['examTime']}%60)+'秒'"></td>
            <td class="text-center" th:text="${examRecord['status']}==1 ? '未完成':'已完成'"></td>
        </tr>
    </tbody>
</table>
<!-- 分页，开始 -->
<div data-th-replace="layout/adminPage"></div>
<!-- 分页，结束 -->